#include <stdio.h>

typedef unsigned int  u32;

typedef struct         //  int
{
	char* name;   // 18 + 2 
	int	 age;        // 4
	char sex;        // 1 + 3 
	float shouru;    // 4
	char* addr;	     //	4
}  People;


void printstruct(People* pstux)
{
	printf("%-10s",pstux->name);
	printf("%-4d",pstux->age);
	printf("%-4c",pstux->sex);
	printf("%-10.2f",pstux->shouru);
	printf("%-20s\n",pstux->addr);		
}

int main()
{
	u32 a = 6;
	
	People  stu1 = {0};
	
	stu1.name = "zhangsan";
	stu1.age = 20;
    stu1.sex = 'W';
    stu1.shouru = 7658.56;
    stu1.addr = "shenzhen";

	printstruct(&stu1);	

	return 0;
}


